/**
 * Created by linzhipeng on 16/4/7.
 */
/*! Fixedfixed: a CSS position:fixed qualifier. (c)2012 @scottjehl, Filament Group, Inc. Dual license: MIT and/or GPLv2 */


export default function($parent,$el,height){
    var callback=function(){
        $el.style.top=`${height+$parent.scrollTop}px`
    }
    callback();
    $parent.addEventListener('scroll',callback);
}
